#include "stdafx.h"
#include "ExceptionEventArgs.h"

using namespace Adaptive::Foundation;

ExceptionEventArgs::ExceptionEventArgs() : EventArgs()
{
}
ExceptionEventArgs::ExceptionEventArgs(String^ source) : EventArgs()
{
    _source = source;
}
ExceptionEventArgs::ExceptionEventArgs(Exception^ exceptionCaught) : EventArgs()
{
    _exception = exceptionCaught;
}
ExceptionEventArgs::ExceptionEventArgs(String^ source, Exception^ exception) : EventArgs()
{
    _source = source;
    _exception = exception;
}
/// <summary>
/// Class destructor.
/// </summary>
ExceptionEventArgs::~ExceptionEventArgs()
{
    _source = nullptr;
    _exception = nullptr;
}
String^ ExceptionEventArgs::Source::get()
{
	return _source;
}
void ExceptionEventArgs::Source::set(String^ value)
{
	_source = value;
}
Exception^ ExceptionEventArgs::ExceptionInstance::get()
{
	return _exception;
}
void ExceptionEventArgs::ExceptionInstance::set(Exception^ value)
{
	_exception = value;
}